#!/usr/bin/env python
#
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from distutils.core import setup
import gettext


NAME = 'key-click'
DIR = 'src/keyclick'
gettext.install(NAME, DIR + '/locale')
VER = '0.1.3'
PY_NAME = 'key_click'
DEB_NAME = NAME.replace('-', '')
RELEASE_FILE = 'RELEASE.rst'
VCS = 'http://%s.code.google.com/hg' % NAME

PY_SRC = '%s.py' % PY_NAME
DEPENDS = ['python-xlib', 'python-gtk2']
DEPENDS_STR = ' '.join(DEPENDS)

MENU_SUBSECTION = 'Graphics'
AUTHOR_NAME = 'Scott Kirkwood'
COPYRIGHT_NAME = 'Google Inc.'
GOOGLE_CODE_EMAIL = 'scott@forusers.com'
MAILING_LIST = 'key-click-discuss@googlegroups.com'
KEYWORDS = ['keyboard', ]
MAN_FILE = 'man/%s.1' % NAME
DESKTOP_FILE = 'icons/%s.desktop' % NAME
ICON = 'icons/%s.xpm' % NAME
COMMAND = '/usr/bin/%s' % NAME
LANGS = []

SETUP = dict(
  name=NAME,
  version=VER,
  packages=['keyclick'],
  package_dir={
      'keyclick': 'src/keyclick'},
  package_data = {
      'keyclick': [
          '*.ogg', '*.wav',
          'icons/key-click.desktop', 'locale/**/*/*.mo'],
  },
  scripts=['src/key-click'],
  author=AUTHOR_NAME,
  author_email='scott+keyclick@forusers.com',
  platforms=['POSIX'],
  license='Apache 2.0',
  keywords=' '.join(KEYWORDS),
  url='http://code.google.com/p/%s' % NAME,
  download_url='http://%s.googlecode.com/files/%s-%s.zip' % (NAME, NAME, VER),
  description=_('A utility that provides audible feedback for clicks'),
  long_description=_("""Key-click is useful to receive extra feedback that a key
  or mouse button has been pressed."""),
  classifiers=[
      'Development Status :: 2 - Pre-Alpha',
      'Environment :: X11 Applications',
      'Intended Audience :: End Users/Desktop',
      'License :: OSI Approved :: Apache Software License',
      'Operating System :: POSIX :: Linux',
      'Topic :: Utilities',
  ],
)

if __name__ == '__main__':
  setup(**SETUP)
